<template>
	<view>
		<!-- 次数用尽-->
		<view  class="weikaitong">
			<image src="https://img.bidcenter.com.cn/uni/qiqing/weikaitong.png"></image>
			
			<view class="title" v-if="tabName=='找人脉'">
				联系搭建桥梁，沟通决定成败
			</view>
			
			
			<view class="desc" v-if="tabName=='找人脉'">
				查看次数已用尽，请购买查看次数
			</view>
		
			<view class="btn">
				<button @click="lijigoumai">
					立即购买
				</button>
				<!-- <button @click="rengongkaitong">
					人工开通
				</button> -->
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		name: "Cishuyongjin",
		props: ['tabName','pageUrl','location'],
		data() {
			return {
				pageurl:''
			};
		},
		
		watch:{
			pageUrl: {
				handler: function(a, b) {
					if (a !== b) {
						this.pageurl = a
					}
				},
				immediate: true
			},
		},
		created(){
			
		},

		methods: {
			//跳转到立即购买跳转到应用购买页面
			lijigoumai(){
				
				// if(this.tabName == '找人脉'){
					
				// 	uni.navigateTo({
				// 		url:'/pagesTwo/qiqing/pay/pay?type=' + 255 + '&callback=' + '123'
				// 	})
				// }else if(this.tabName == '查企业') {
				// 	uni.navigateTo({
				// 		url:'/pagesTwo/qiqing/pay/pay?type=' + 254 + '&callback=' + this.pageurl
				// 	})
				// }
				this.$emit('lijigoumai')
				
			},
		
		}
	}
</script>

<style lang="scss" scoped>
	.weikaitong{
		padding-top: 76rpx;
		margin-bottom: 200rpx;
		text-align: center;
		image{
			width: 400rpx;
			height: 310rpx;
		}
		.title{
			font-size: 28rpx;
			color: #3B3E45;
			font-weight: bold;
		}
		.desc{
			margin-top: 20rpx;
			font-size: 24rpx;
			color: #6C717E;
		}
		.btn{
			width: 600rpx;
			margin: 0 auto;
			margin-top: 46rpx;
			display: flex;
			button{
				display: inline-block;
				flex:1;
				height: 88rpx;
				line-height: 88rpx;
				font-size: 32rpx;
				font-weight: bold;
				border-radius: 4rpx;
				border: 0;
				&::after{
					border: none;
				}
				&:first-child{
					margin-right: 40rpx;
					color: #fff;
					background: linear-gradient( 90deg, #1F91FF 0%, #1D11FB 100%);
				}
				// &:last-child{
				// 	color: #82410E;
				// 	background: linear-gradient( 90deg, #FCE37E 0%, #FBA767 100%);
				// }
			}
		}
	}
</style>